package app.dev.ems.web.element;

public enum DialogProperties {

	LOGIN_ERROR_DIALOG_OPEN_EVENT(DialogEvent.LOGIN_ERROR_DIALOG_ON_OPEN),
	
	LOGIN_ERROR_DIALOG_SHOW_EFFECT(DialogEffect.EXPLODE_EFFECT),
	LOGIN_ERROR_DIALOG_HIDE_EFFECT(DialogEffect.EXPLODE_EFFECT);
	
	private DialogEvent dialogEvent;
	private DialogEffect dialogEffect;
	
	private DialogProperties(DialogEvent dialogEvent) {
		this.dialogEvent = dialogEvent;
	}	
	
	private DialogProperties(DialogEffect dialogEffect) {
		this.dialogEffect = dialogEffect;
	}
	
	public DialogEvent getDialogEvent() {
		return dialogEvent;
	}
	
	public DialogEffect getDialogEffect() {
		return dialogEffect;
	}

	public enum DialogEvent {
		LOGIN_ERROR_DIALOG_ON_OPEN("onDialogOpen()");
		
		private String event;		

		private DialogEvent(String event) {
			this.event = event;
		}
		
		public String getEvent() {
			return event;
		}
	}
	
	public enum DialogEffect {
		EXPLODE_EFFECT("explode");
		
		private String effect;		

		private DialogEffect(String effect) {
			this.effect = effect;
		}

		public String getEffect() {
			return effect;
		}
	}
}
